package com.hfmall.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author liclo
 * @since 2021-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class HfGoods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer goodsinfoId;  //外键-商品共性id

    private String sku;  //单个-具体-商品编号

    private BigDecimal price;  //商品价格

    private Integer stock;  //库存

    @TableField(exist = false)
    private List<HfPictures> hfPictureList; //商品图片套图
    @TableField(exist = false)
    private List<HfGoodsinfo> goodsinfo; //商品的公共信息

    @TableField(exist = false)
    private Map<String,String> goodsClassValue; //商品规格


}
